package org.jivesoftware.openfire.chatlogs;

import org.jivesoftware.util.JiveConstants;

public class ChatLogs {
	 private long messageId;
	 private String msgUser;
     private String sessionJID;
     private String sender;
     private String receiver;
     private String createDate;
     private String content;
     private String detail;
     private int length;
   
     
     public interface LogState {
         int show = 0;
         int remove = 1;
     }
     
 
     public class ChatLogsConstants extends JiveConstants {
         public static final int CHAT_LOGS = 52;
         public static final int USER_ONLINE_STATE = 53;
     }
     
     public ChatLogs() {
     }
     public ChatLogs(long messageId, String createDate, String content, String sender,String receiver) {
         super();
         this.messageId = messageId;
         this.sender = sender;
         this.createDate = createDate;
         this.content = content;
         this.receiver = receiver;
       
         
     }
     
     public ChatLogs(long messageId, String sessionJID, String createDate, String content, String detail, int length) {
         super();
         this.messageId = messageId;
         this.sessionJID = sessionJID;
         this.createDate = createDate;
         this.content = content;
         this.detail = detail;
         this.length = length;
         
     }
     public String getMsgUser(){
    	 	return msgUser;
     }
     
     public long getMessageId() {
 		// TODO Auto-generated method stub
 		return messageId;
 	}
 	public String getSessionJID() {
 		// TODO Auto-generated method stub
 		return sessionJID;
 	}
 	public String getSender() {
 		// TODO Auto-generated method stub
 		return sender;
 	}
 	public String getReceiver() {
 		// TODO Auto-generated method stub
 		return receiver;
 	}
 	public String getCreateDate() {
 		// TODO Auto-generated method stub
 		return createDate;
 	}
 	public int getLength() {
 		// TODO Auto-generated method stub
 		return length;
 	}
 	public String getContent() {
 		// TODO Auto-generated method stub
 		return content;
 	}
 	public String getDetail() {
 		// TODO Auto-generated method stub
 		return detail;
 	}
 	
 	public void setMessageId(long int1) {
 		// TODO Auto-generated method stub
 		messageId=int1;
 	}
 	public void setContent(String string) {
 		// TODO Auto-generated method stub
 		content = string;
 	}
 	public void setCreateDate(String timestamp) {
 		// TODO Auto-generated method stub
 		createDate = timestamp;
 	}
 	public void setLength(int int1) {
 		// TODO Auto-generated method stub
 		length= int1;
 		
 	}
 	public void setSessionJID(String string) {
 		// TODO Auto-generated method stub
 		sessionJID=string;
 	}
 	public void setSender(String string) {
 		// TODO Auto-generated method stub
 		sender=string;
 	}
 	public void setReceiver(String string) {
 		// TODO Auto-generated method stub
 		receiver=string;
 	}
 	public void setDetail(String xml) {
 		// TODO Auto-generated method stub
 		detail=xml;
 	}
	public void setMsgUser(String node) {
		// TODO Auto-generated method stub
		this.msgUser = node;
	}
 
	
}
